package com.cqndt.disaster.device.controller;

import javax.servlet.http.HttpServletRequest;
import com.cqndt.disaster.device.vo.SearchVo;
import javax.servlet.http.HttpServletResponse;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RestController;
import org.springframework.web.bind.annotation.RequestMapping;
import com.cqndt.disaster.device.service.TabDevicePatrolService;

@RestController
@RequestMapping("/tabDevicePatrol")
public class TabDevicePatrolController {

    @Autowired
    private TabDevicePatrolService devicePatrolService;

    /**
     * @date 2020-9-15 
     * @param sensorNo 传感器编号（多个传感器请用逗号隔开）
     * @param sensorType 传感器类型（与编号位置对应多个类型请用逗号隔开）
     * @param startTime 开始时间
     * @param endTime 结束时间
     * @return 数据曲线
     **/
    @RequestMapping(value="getEchartExport")
    public void getEchartExport(SearchVo vo,HttpServletRequest request,
    		HttpServletResponse response){
        try {
            devicePatrolService.getEchartExport(vo,request,response);
        } catch (Exception e) {
            e.printStackTrace();
        }
    }

}